package com.itheima.demo5.ZengDemo5;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

/**
 * @ClassName server
 * @Author 16799
 * @Date 2025/9/30 11:04
 * @Version 1.0
 * @Description TODO
 **/
public class server {
    //疑惑： 我用绝对路径的时候，这里是无法保存信息到这个属性文件中的，有bug。改成相对路径就好了
    public static final String  Users_File_Path = "Day14JavasePro-HuangPuBan-Test\\src\\zengUsers.properties";
    public static void main(String[] args) {
        try {
            ServerSocket serverSocket = new ServerSocket(8877);

            while (true){
                Socket socket = serverSocket.accept();
                new serverThread(socket).start();
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
